package com.code.day17JiHe.Stream;

import java.util.stream.Stream;

public class Test05 {
    public static void main(String[] args) {
        Stream<String> stream = Stream.of("张三", "李四", "李四", "王五", "赵六", "孙七");
        stream.distinct().forEach(System.out::println);
        System.out.println("===================");

        Stream<method> stream1 = Stream.of(new method("碎碎念", 17), new method("碎碎念", 17));
        stream1.distinct().forEach(System.out::println);
    }
}
